/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/location.html#wxchooselocationobject)
 */
export default function choose_location() {
	return new Promise<wx.ChooseLocationData>((resolve, reject) => {
		wx.chooseLocation({
			success(res) {
				resolve(res);
			},
			fail(e) {
				reject(e);
			}
		});
	});
}
